<?php 
/**
 * Concept: Footer items on a Single article page
 * Copyright 2011 www.gradientpixels.ca
 * Theme: Incantation
 */
?>

<?php if ( is_single() ) : // if this is a single post page ?>				


<?php
				/* translators: used between list items, there is a space after the comma */
				$tags_list = get_the_tag_list( '', __( ', ', 'gp' ) );
				if ( $tags_list ):
				if ( $show_sep ) : ?>
			<span>, </span>
				<?php endif; // End if $show_sep ?>
			<div id="tags">
				<?php printf( __( 'Tags: %2$s', 'gp' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list );
				$show_sep = true; ?>
			</div>
			<?php endif; // End if $tags_list ?>


 
               
	<?php get_template_part( 'inc/related'); // load the related articles with thumbnails ?>			
			
		<?php if ( get_the_author_meta( 'description' )) : // If a user has filled out their description and this is a multi-author blog, show a bio on their entries ?>
			<div id="author-wrap" style="background-color:#ececec; margin:30px auto;" class="clearfix">
				<div id="author-avatar" style="background-color:<?php echo of_get_option('avatar_bottom'); ?>;">
					<?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'gp_author_bio_avatar_size', 80 ) ); ?>
				</div>	
				<div id="author-details"><h5><?php printf( esc_attr__( 'About %s', 'gp' ), get_the_author() ); ?></h5>
					<p style="color:#555;"><?php the_author_meta( 'description' ); ?></p>
					<span id="author-link">							
						<a style="color:#669999;" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" rel="author">
							<?php printf( __( 'View all posts by %s', 'gp' ), get_the_author() ); ?>
						</a>
					</span>
				</div>
			</div>
		<?php endif; ?>	
		
		<?php comments_template( '', true ); // load the comments template ?>
<?php endif; ?>